fix(layers): show warning if !Sub function is used in Layers section of template.yaml (#948)#949
Conversation
…ion of template.yaml (aws#948)
|
Stumbled on that as well, until such feature is supported it would be awesome to have a clear warning 👍 |
|
While this impacts Layers (probably disproportionally), I don't believe this is the correct place for adding this detail. SAM CLI (as a whole) does not have support for Sub (and many other intrinsics). Due to this, we shouldn't be trying to read these intrinsics within the higher provider classes. This means, for ever resource and property, we need to add this kind of logging. While it is contextually, it creates more work later on. Instead, I would be ok with adding this logging more broadly to communicate the known Intrinsic gaps. Maybe this is a good place? |
|
@goldeneggg and @mnapoli We are addressing intrinsics in #1261. Once that is merged, integrated, and released, there shouldn't be any more intrinsic confusion on support. I am going to close this in favor of the full solution we are currently going through. |
#948
Description of changes:
If
!Subfunction is used inLayerssection of template.yaml and runsam local invokeand get an error.Checklist:
make prpassesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.